package com.example.xdzx.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;


@Data
public class LostItems {
    private Long lostId;
    private Long userId;
    private String userName;
    private String userPic;
    private String capsuleGoods;
    private String imageUrl;
    private String capsuleAddr;
    private String type;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public LostItems(Long lostID, Long userID, String userName, String userPic, String capsuleGoods, String imageUrl, String capsuleAddr, String type, Date createTime) {
        this.lostId = lostID;
        this.userId = userID;
        this.userName = userName;
        this.userPic = userPic;
        this.capsuleGoods = capsuleGoods;
        this.imageUrl = imageUrl;
        this.capsuleAddr = capsuleAddr;
        this.type = type;
        this.createTime = createTime;
    }

    public LostItems() {
    }
}
